package de.fhkl.gatav.ut.framedancer_1;

import de.fhkl.gatav.ut.framedancer_1.R;

import android.app.Activity;
import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;
import android.widget.ImageView;

public class FrameDancer_1_Activity extends Activity {
	private ImageView animView;
	
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
 
		animView = (ImageView) findViewById(R.id.danceView);
		final AnimationDrawable drawableAnimation = (AnimationDrawable) animView.getDrawable();
		
		animView.post( 
			new Runnable() {
				public void run() { 
					drawableAnimation.start();
				}
			}
		);
    }
}